﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserEdit.aspx.cs" EnableEventValidation="false"
    Inherits="main_admin_UserEdit" %>

<%@ Register TagPrefix="uc" Namespace="cde.UserControl" Assembly="cde.UserControl" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../../css/base.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" language="javascript" src="../../js/base.js"></script>

    <script type="text/javascript" language="javascript" src="../../js/validator.js"></script>

    <script type="text/javascript" language="javascript" src="../../js/comm.js"></script>

    <script type="text/javascript" language="javascript" src="../../js/singleeditpoint.js"></script>

    <script type="text/javascript">
        function fCheck() {
            //清除空格	
            TrimAllitems();
            var thisForm = document.forms[0];
            if (Validator.Validate(thisForm, 3)) {
                if (document.getElementById("txt_PSW") != null && document.getElementById("txt_PSW_confirm") != null) {
                    if (document.getElementById("txt_PSW").value != document.getElementById("txt_PSW_confirm").value) {
                        showErrMsg(document.getElementById("err_PSW_confirm"), "密码不一致");
                        return false;
                    }
                }
                return true;
            }
            return false;
        }
        
        
    </script>

</head>
<body>
    <form id="aspnetForm" runat="server">
    <div class="conter_right">
      <!--title start-->
    <div class="sfkr"><span>当前位置：</span>用户管理</div>    
    
    <!--title end-->
 
        <fieldset class="dsadq">
            <legend style="color: #434449" runat="server" id="legend">新增用户</legend>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="msels">
                <tr>
                    <td width="16%" align="right" valign="middle">
                        <asp:Label ID="lbl_USER_NAME" runat="server" Text="用户名："></asp:Label>
                    </td>
                    <td align="left" valign="middle">
                          <asp:TextBox ID="txt_USER_NAME" runat="server" CssClass="srjks" MaxLength="20" Width="150px"
                            dataType="Require" msg="不能为空" ></asp:TextBox>
                        <asp:Label ID="err_USER_NAME" runat="server"></asp:Label>
                    </td>
                    <td width="16%" align="right" valign="middle">
                      
                    </td>
                    <td width="34%" align="left" valign="middle">
                        
                    </td>
                </tr>
                <tr>
                    
                    <td width="16%" align="right" valign="middle">
                        <asp:Label ID="lbl_ROLE_ID__ROLE_NAME" runat="server" Text="角色："></asp:Label>
                    </td>
                    <td width="34%" align="left" valign="middle">
                        <asp:DropDownList ID="ddl_ROLE_ID__ROLE_NAME" runat="server" CanZhao="ROLE_NAME"
                            TiaoJian="DEL_FLG|0|3" dataType="Require" msg="不能为空" CssClass="saae">
                        </asp:DropDownList>
                        <asp:Label ID="err_ROLE_ID__ROLE_NAME" runat="server"></asp:Label>
                    </td>
                    <td align="right" valign="middle">
                         <asp:Label ID="lbl_DEPT_ID__DEPT_NAME" runat="server" Text="部门："></asp:Label>
                    </td>
                    <td align="left" valign="middle">
                      <asp:DropDownList ID="ddl_DEPT_ID__DEPT_NAME" runat="server" CanZhao="DEPT_NAME"
                            TiaoJian="DEL_FLG|0|3" dataType="Require" msg="不能为空" CssClass="saae">
                        </asp:DropDownList>
                        <asp:Label ID="err_DEPT_ID__DEPT_NAME" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="middle">
                        <asp:Label ID="lbl_NAME" runat="server" Text="姓名："></asp:Label>
                    </td>
                    <td align="left" valign="middle">
                        <asp:TextBox ID="txt_NAME" runat="server" CssClass="srjks" MaxLength="20" Width="150px"
                            dataType="Require" msg="不能为空" ></asp:TextBox>
                        <asp:Label ID="err_NAME" runat="server"></asp:Label>
                    </td>
                    <td align="right" valign="middle">
                        <asp:Label ID="lbl_SEX" runat="server" Text="性别："></asp:Label>
                    </td>
                    <td align="left" valign="middle">
                        <asp:RadioButtonList ID="ddl_SEX" runat="server" RepeatDirection="Horizontal" DefaultOption="1" />
                        <asp:Label ID="err_SEX" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr id="row_PSW" runat="server">
                    <td align="right" valign="middle">
                        <asp:Label ID="lbl_PSW" runat="server" Text="密码："></asp:Label>
                    </td>
                    <td align="left" valign="middle">
                        <asp:TextBox ID="txt_PSW" runat="server" CssClass="srjks" MaxLength="10" Width="150px"
                            TextMode="Password" dataType="Require" msg="不能为空"></asp:TextBox>
                        <asp:Label ID="err_PSW" runat="server"></asp:Label>
                    </td>
                    <td align="right" valign="middle">
                        <font color="red">*&nbsp;</font><asp:Label ID="lbl_PSW_confirm" runat="server" Text="确认密码："></asp:Label>
                    </td>
                    <td align="left" valign="middle">
                        <asp:TextBox ID="txt_PSW_confirm" runat="server" CssClass="srjks" MaxLength="10"
                            TextMode="Password" Width="150px" dataType="Require" msg="不能为空"></asp:TextBox>
                        <asp:Label ID="err_PSW_confirm" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="middle">
                        <asp:Label ID="lbl_MOBILE" runat="server" Text="手机："></asp:Label>
                    </td>
                    <td align="left" valign="middle">
                        <asp:TextBox ID="txt_MOBILE" runat="server" CssClass="srjks" MaxLength="11" Width="150px"
                            dataType="Require,Mobile" msg="不能为空,格式错误" ></asp:TextBox>
                        <asp:Label ID="err_MOBILE" runat="server"></asp:Label>
                    </td>
                    <td align="right" valign="middle">
                        <asp:Label ID="lbl_TEL" runat="server" Text="电话："></asp:Label>
                    </td>
                    <td align="left" valign="middle">
                        <asp:TextBox ID="txt_TEL" runat="server" CssClass="srjks" MaxLength="15" Width="150px"
                            dataType="Phone" msg="格式错误"></asp:TextBox>
                        <asp:Label ID="err_TEL" runat="server"></asp:Label>
                    </td>
                </tr>
                
                
                <tr>
                   <td align="right" valign="middle">
                         <asp:Label ID="lbl_AREA_ID__AREA_NAME" runat="server" Text="负责区域："></asp:Label>
                    </td>
                    <td align="left" valign="middle">
                      <asp:DropDownList ID="ddl_AREA_ID__AREA_NAME" runat="server" CanZhao="AREA_NAME"
                            TiaoJian="DEL_FLG|0|0" dataType="Require" msg="不能为空" CssClass="saae">
                        </asp:DropDownList>
                        <asp:Label ID="err_AREA_ID__AREA_NAME" runat="server"></asp:Label>
                    </td>
                   <td align="right" valign="middle">
                        <asp:Label ID="lbl_POST" runat="server" Text="职务："></asp:Label>
                    </td>
                    <td align="left" valign="middle">
                        <asp:RadioButtonList ID="ddl_POST" runat="server" RepeatDirection="Horizontal" />
                        <asp:Label ID="err_POST" runat="server"></asp:Label>
                    </td>
                </tr>
                
                <tr>
                    <td align="right" valign="middle">
                        <asp:Label ID="lbl_EMAIL" runat="server" Text="邮箱："></asp:Label>
                    </td>
                    <td align="left" valign="middle">
                        <asp:TextBox ID="txt_EMAIL" runat="server" CssClass="srjks" MaxLength="100" Width="150px"
                            dataType="Require,Email" msg="不能为空,格式错误" ></asp:TextBox>
                        <asp:Label ID="err_EMAIL" runat="server"></asp:Label>
                    </td>
                   <td align="right" valign="middle">
                        <asp:Label ID="lbl_DEL_FLG" runat="server" Text="状态："></asp:Label>
                    </td>
                    <td align="left" valign="middle">
                        <asp:RadioButtonList ID="ddl_DEL_FLG" runat="server" RepeatDirection="Horizontal" />
                        <asp:Label ID="err_DEL_FLG" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
        </fieldset>
    </div>
    <div style="height: 15px">
    </div>
    <div class="nstkaah" align="center" style="width: 90%">
        <asp:Button ID="btnSave" runat="server" CssClass="seaal" Text="保存" OnClick="btnSave_Click"
            OnClientClick="return fCheck();" />
        <asp:Button ID="btnCancel" runat="server" CssClass="seaal" Text="返回" OnClick="btnCancel_Click" />
        <asp:HiddenField ID="subList" runat="server" Value="" />
    </div>
    <!--jjjjjjjjjjjjjjjjjjjj页脚部分jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj-->
    <div id="footer">
    </div>

    </form>
</body>
</html>
